RPCSYS_HOME = $(HOME)/pratices/rpc-sys

CC = g++
OBJ_DIR = obj
AR = ar -r
MAKE = make

PROTOBUF_HOME = $(HOME)/3rd/protobuf-2.4.1
PROTOBUF_PROTOC = $(PROTOBUF_HOME)/src/protoc
PROTOBUF_PROTOPATH = $(PROTOBUF_HOME)/src
PROTOBUF_INCPATH = -I$(PROTOBUF_HOME)/src

IOBASE_HOME = $(HOME)/space/iobase
THIRD_HOME = $(RPCSYS_HOME)/3rd

RPCSYS_PROTOPATH = $(RPCSYS_HOME)/sys/proto
RPCSYS_LIBPATH = $(RPCSYS_HOME)/lib

RPCSYS_CXXFLAG = -Wall -g -ggdb -Wextra -pipe -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free \
			     -fno-omit-frame-pointer

RPCSYS_LIBS = $(RPCSYS_HOME)/lib/libproto_rpcsys.a
RPCSYS_LIBS += $(RPCSYS_HOME)/lib/librpcsys.a
RPCSYS_LIBS += $(RPCSYS_HOME)/lib/libprotobuf.a
RPCSYS_LIBS += $(IOBASE_HOME)/libiobase.a
RPCSYS_LIBS += $(RPCSYS_HOME)/lib/libsnappy.a

RPCSYS_DYNLIBS = -Wl,--eh-frame-hdr -lprofiler -ltcmalloc -lm -lc -lz -lrt -lpthread

PRCSYS_INC = -I$(RPCSYS_HOME)/sys/proto
PRCSYS_INC += -I$(RPCSYS_HOME)/sys/src
PRCSYS_INC += -I$(IOBASE_HOME)
PRCSYS_INC += $(PROTOBUF_INCPATH)
PRCSYS_INC += -I$(THIRD_HOME)/include




